﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BigDataFramework.Library.Objects.DataAdapters;
using BigDataFramework.Library.Objects.DataAdapters.Reddit;
using BigDataFramework.Library.Objects.DataAdapters.FourSquare;
using BigDataFramework.Library.Objects.DataAdapters.Twitter;

namespace BigDataFramework.Library.Objects
{
    public class EventSyncer
    {
        public void PerformSync()
        {
            // TODO: Make a generic container to hold one data adapter per registered collection and then loop through them in order to call "SyncDataToEvents()"

            // Sync FourSquare checkins
            DataAdapterBase<BigData.DataContracts.Objects.FourSquare.BigDataFourSquareCheckin> dataAdapter = new FourSquareDataAdapterCheckin();
            dataAdapter.SyncDataToEvents();

            // Sync DataAdapter Comments
            DataAdapterBase<BigData.DataContracts.Objects.Reddit.Comment> commentAdapter = new CommentsAdapter();
            commentAdapter.SyncDataToEvents();

            // Future home of Twitter
            DataAdapterBase<BigData.DataContracts.Objects.Twitter.BigDataTwitterTweet> twitterAdapter = new TwitterDataAdapter();
            twitterAdapter.SyncDataToEvents();
        }
    }
}
